package com.bjpowernode.api.result;

import java.io.Serializable;

/**
 * @description:
 * @author: panDeng_Zhu
 * @time: 2022/11/7 15:14
 *
 * dubbo 调用结果
 */

public class DubboResult implements Serializable {
    private boolean invoke;
    private int code;
    private String msg;
    private Object data;

    public DubboResult() {
        invoke=false;
        code =-1;
        msg="调用远程接口失败";
    }

    public boolean isInvoke() {
        return invoke;
    }

    public void setInvoke(boolean invoke) {
        this.invoke = invoke;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
